// 卸载文件nw-uninstall.js
let Service = require('node-windows').Service;
 
let svc = new Service({
  name:'CmpageWebService', //名称
  description: 'Cmpage Web Windows Service ',//描述
  script:  './development.js',//node执行入口
  nodeOptions: [
    '--harmony',
    '--max_old_space_size=4096'
  ]
});

svc.on('uninstall',function(){
  console.log('Uninstall complete.');
  console.log('The service exists: ',svc.exists);
});

svc.uninstall();
